import { atom } from "recoil";

export type TodoItemType = {
  id: number;
  text: string;
  isComplete: boolean;
};

export type TodoListType = TodoItemType[];

// MARK: 2、通过 atom 创建原子状态
export const todoListState = atom<TodoListType>({
  key: 'todoListState',
  default: [],
});